Sha256: 783c76f2000f1e5941149b7641b60d4288d8c63a00d4f9916750bbaad864a015

Contents?: true

Size: 544 Bytes

Versions: 5

Compression:

Stored size: 544 Bytes

Contents

ActiveRecord::Base.configurations = { "test"=> {"adapter"=>"sqlite3", "database"=>":memory:"} }
ActiveRecord::Base.establish_connection :test

version = "#{ActiveRecord::VERSION::MAJOR}.#{ActiveRecord::VERSION::MINOR}"
class CreateAllTables < ActiveRecord::Migration[version]
  def change
    create_table :users do |t|
      t.integer :gender, null: false, default: 0, limit: 1
      t.integer :status, null: false, default: 0, limit: 1

      t.timestamps
    end
  end
end

ActiveRecord::Migration.verbose = false
CreateAllTables.new.change

Version data entries

5 entries across 5 versions & 3 rubygems

Version Path
enum_local_i18n-0.0.2 spec/support/setup_database.rb
enum_i18n_helper-0.0.2 spec/support/setup_database.rb
enum_i18n_helper-0.0.1 spec/support/setup_database.rb
enum_help-0.0.19 spec/support/setup_database.rb
enum_help-0.0.18 spec/support/setup_database.rb