test/helpers/database_helper.rb in enumerations-2.1.0 vs test/helpers/database_helper.rb in enumerations-2.2.0
- old
+ new
@@ -2,14 +2,19 @@
ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: ':memory:')
ActiveRecord::Schema.define do
create_table :posts, force: true do |t|
- t.integer :status_id
- t.integer :some_other_status_id
+ t.string :status
+ t.string :some_other_status
end
create_table :users, force: true do |t|
- t.integer :role_id
- t.string :status_id
+ t.string :role
+ t.string :status
+ end
+
+ create_table :custom_models, force: true do |t|
+ t.integer :custom_enum_id
+ t.integer :custom_enum
end
end