Sha256: f519bafa3f286c523f6908fc7fe50c6298091fd44d54708dd7bbe1f9745ebc4e

Contents?: true

Size: 440 Bytes

Versions: 13

Compression:

Stored size: 440 Bytes

Contents

require 'logger'

ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: ':memory:')

ActiveRecord::Schema.define do
  create_table :posts, force: true do |t|
    t.string :status
    t.string :some_other_status
  end

  create_table :users, force: true do |t|
    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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
enumerations-2.5.4 test/helpers/database_helper.rb
enumerations-2.5.3 test/helpers/database_helper.rb
enumerations-2.5.2 test/helpers/database_helper.rb
enumerations-2.5.1 test/helpers/database_helper.rb
enumerations-2.5.0 test/helpers/database_helper.rb
enumerations-2.4.0 test/helpers/database_helper.rb
enumerations-2.3.3 test/helpers/database_helper.rb
enumerations-2.3.2 test/helpers/database_helper.rb
enumerations-2.3.1 test/helpers/database_helper.rb
enumerations-2.2.3 test/helpers/database_helper.rb
enumerations-2.2.2 test/helpers/database_helper.rb
enumerations-2.2.1 test/helpers/database_helper.rb
enumerations-2.2.0 test/helpers/database_helper.rb