Sha256: a3f21c39fe90eb8ecb346065741c251ce7aa196984e8608133c02ef908500c8a

Contents?: true

Size: 191 Bytes

Versions: 1

Compression:

Stored size: 191 Bytes

Contents

class CreateTags < ActiveRecord::Migration
  def change
    create_table :tags do |t|
      t.integer :user_id

      t.timestamps null: false
    end
    add_index :tags, :user_id
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
poly_belongs_to-0.1.3 test/dummy/db/migrate/20150211224157_create_tags.rb