|
5 | 5 | end |
6 | 6 |
|
7 | 7 | create_table :defaults, :force => true do |t| |
8 | | - # NOTE: These are the other columns from the postgresql specific schema |
9 | | - # however, there aren't any tests for them yet, so no point creating them. |
10 | | - # modified_date date default CURRENT_DATE, |
11 | | - # modified_date_function date default now(), |
12 | | - # fixed_date date default '2004-01-01', |
13 | | - # modified_time timestamp default CURRENT_TIMESTAMP, |
14 | | - # modified_time_function timestamp default now(), |
15 | | - # fixed_time timestamp default '2004-01-01 00:00:00.000000-00', |
16 | | - # char1 char(1) default 'Y', |
17 | | - # char2 character varying(50) default 'a varchar field', |
18 | | - # char3 text default 'a text field', |
19 | 8 | t.column :positive_integer, :integer, :default => 1 |
20 | 9 | t.column :negative_integer, :integer, :default => -1 |
21 | 10 | t.column :decimal_number, :decimal, :precision => 3, :scale => 2, :default => 2.78 |
|
29 | 18 | t.column :string_with_pretend_null_four, :string, :default => '(NULL)' |
30 | 19 | end |
31 | 20 |
|
32 | | - |
33 | | - create_table :fk_test_has_fks, :force => true do |t| |
34 | | - t.integer :fk_id, :null => false |
35 | | - end |
36 | | - create_table :fk_test_has_pks, :force => true do |t| |
| 21 | + create_table :sql_server_chronics, :force => true do |t| |
| 22 | + t.column :date, :date |
| 23 | + t.column :time, :time |
| 24 | + t.column :datetime, :datetime |
| 25 | + t.column :timestamp, :timestamp |
37 | 26 | end |
| 27 | + |
| 28 | + create_table(:fk_test_has_fks, :force => true) { |t| t.column(:fk_id, :integer, :null => false) } |
| 29 | + create_table(:fk_test_has_pks, :force => true) { } |
38 | 30 | execute <<-ADDFKSQL |
39 | 31 | ALTER TABLE fk_test_has_fks |
40 | 32 | ADD CONSTRAINT FK__fk_test_has_fk_fk_id |
|
0 commit comments