Sha256: 6d76d9d70234cfe918f8519193add1d121dcd206636a3a9a59fb6bcd41b28ca7

Contents?: true

Size: 215 Bytes

Versions: 19

Compression:

Stored size: 215 Bytes

Contents

class CreateContacts < ActiveRecord::Migration
  def change
    create_table :contacts do |t|
      t.integer :user_id
      t.string :content

      t.timestamps
    end
    add_index :contacts, :user_id
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
poly_belongs_to-1.0.0 test/dummy/db/migrate/20150216092449_create_contacts.rb
poly_belongs_to-0.3.0 test/dummy/db/migrate/20150216092449_create_contacts.rb
poly_belongs_to-0.2.9 test/dummy/db/migrate/20150216092449_create_contacts.rb
poly_belongs_to-0.2.8 test/dummy/db/migrate/20150216092449_create_contacts.rb
poly_belongs_to-0.2.7 test/dummy/db/migrate/20150216092449_create_contacts.rb
poly_belongs_to-0.2.6 test/dummy/db/migrate/20150216092449_create_contacts.rb
poly_belongs_to-0.2.5 test/dummy/db/migrate/20150216092449_create_contacts.rb
poly_belongs_to-0.2.4 test/dummy/db/migrate/20150216092449_create_contacts.rb
poly_belongs_to-0.2.3 test/dummy/db/migrate/20150216092449_create_contacts.rb
poly_belongs_to-0.2.2 test/dummy/db/migrate/20150216092449_create_contacts.rb
poly_belongs_to-0.2.1 test/dummy/db/migrate/20150216092449_create_contacts.rb
poly_belongs_to-0.2.0 test/dummy/db/migrate/20150216092449_create_contacts.rb
poly_belongs_to-0.1.10 test/dummy/db/migrate/20150216092449_create_contacts.rb
poly_belongs_to-0.1.9 test/dummy/db/migrate/20150216092449_create_contacts.rb
poly_belongs_to-0.1.8 test/dummy/db/migrate/20150216092449_create_contacts.rb
poly_belongs_to-0.1.7 test/dummy/db/migrate/20150216092449_create_contacts.rb
poly_belongs_to-0.1.6 test/dummy/db/migrate/20150216092449_create_contacts.rb
poly_belongs_to-0.1.5 test/dummy/db/migrate/20150216092449_create_contacts.rb
poly_belongs_to-0.1.4 test/dummy/db/migrate/20150216092449_create_contacts.rb