spec/schema.rb in active_null-0.0.6 vs spec/schema.rb in active_null-1.0.0
- old
+ new
@@ -2,18 +2,24 @@
self.verbose = false
create_table :posts, force: true do |t|
t.string :title
t.string :_type
- t.timestamps
+ t.timestamps null: true
end
+ create_table :users, force: true do |t|
+ t.string :name
+ t.timestamps null: true
+ end
+
create_table :comments, force: true do |t|
t.string :content
t.references :post
- t.timestamps
+ t.references :author, polymorphic: true
+ t.timestamps null: true
end
create_table :test_models, force: true do |t|
- t.timestamps
+ t.timestamps null: true
end
end