Sha256: 29e579d1624682f5fe52467b10eb465d43253a256cadcdceb1aed072f1fac083

Contents?: true

Size: 322 Bytes

Versions: 54

Compression:

Stored size: 322 Bytes

Contents

class CreateDemands < ActiveRecord::Migration
  def change
    create_table :demands do |t|
      t.integer :user_id
      t.integer :item_id
      t.integer :message_id

      t.timestamps null: false
    end
    add_index :demands, :user_id
    add_index :demands, :item_id
    add_index :demands, :message_id
  end
end

Version data entries

54 entries across 49 versions & 4 rubygems

Version Path
enju_leaf-1.2.2 spec/dummy/db/migrate/20150106001709_create_demands.rb
enju_library-0.2.5 spec/dummy/db/migrate/20150106001709_create_demands.rb
enju_seed-0.2.3 spec/dummy/db/migrate/20150106001709_create_demands.rb
enju_library-0.2.4 spec/dummy/db/migrate/20150106001709_create_demands.rb
enju_library-0.2.3 spec/dummy/db/migrate/20150106001709_create_demands.rb
enju_seed-0.2.2 spec/dummy/db/migrate/20150106001709_create_demands.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_seed-0.2.0/spec/dummy/db/migrate/20150106001709_create_demands.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/bundler/gems/enju_library-d36f415e177e/spec/dummy/db/migrate/20150106001709_create_demands.rb
enju_leaf-1.2.1 spec/dummy/db/migrate/20150106001709_create_demands.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_library-0.2.1/spec/dummy/db/migrate/20150106001709_create_demands.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_library-0.2.2/spec/dummy/db/migrate/20150106001709_create_demands.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_seed-0.2.1/spec/dummy/db/migrate/20150106001709_create_demands.rb
enju_library-0.2.2 spec/dummy/db/migrate/20150106001709_create_demands.rb
enju_seed-0.2.1 spec/dummy/db/migrate/20150106001709_create_demands.rb
enju_seed-0.3.0.beta.3 spec/dummy/db/migrate/20150106001709_create_demands.rb
enju_library-0.2.1 spec/dummy/db/migrate/20150106001709_create_demands.rb
enju_seed-0.3.0.beta.2 spec/dummy/db/migrate/20150106001709_create_demands.rb
enju_seed-0.3.0.beta.1 spec/dummy/db/migrate/20150106001709_create_demands.rb
enju_library-0.2.0 spec/dummy/db/migrate/20150106001709_create_demands.rb
enju_leaf-1.2.0 spec/dummy/db/migrate/20150106001709_create_demands.rb