test/model_definitions.rb in pseudocephalopod-0.1.0 vs test/model_definitions.rb in pseudocephalopod-0.2.0
- old
+ new
@@ -9,20 +9,11 @@
t.string :slug
t.integer :record_id
t.datetime :created_at
end
-user = ReversibleData.add :users do |u|
+ReversibleData.add :users do |u|
u.string :name
- u.string :cached_slug
- u.timestamps
-end
-
-user.define_model do
- is_sluggable :name
-end
-
-ReversibleData.add :unslugged_users do |u|
- u.string :name
+ u.string :address
u.string :cached_slug
u.timestamps
end
\ No newline at end of file