Sha256: 707685d0aee79dc4129f3518f9d12394e84ad47452344d828473c62d6f03ac2d

Contents?: true

Size: 189 Bytes

Versions: 9

Compression:

Stored size: 189 Bytes

Contents

class CreateRoles < ActiveRecord::Migration[5.1]
  def change
    create_table :roles do |t|
      t.belongs_to :user
      t.string :role
    end

    add_index :roles, :user_id
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
awesome_translations-0.0.62 spec/dummy/db/migrate/20141018081640_create_roles.rb
awesome_translations-0.0.61 spec/dummy/db/migrate/20141018081640_create_roles.rb
awesome_translations-0.0.60 spec/dummy/db/migrate/20141018081640_create_roles.rb
awesome_translations-0.0.59 spec/dummy/db/migrate/20141018081640_create_roles.rb
awesome_translations-0.0.58 spec/dummy/db/migrate/20141018081640_create_roles.rb
awesome_translations-0.0.57 spec/dummy/db/migrate/20141018081640_create_roles.rb
awesome_translations-0.0.56 spec/dummy/db/migrate/20141018081640_create_roles.rb
awesome_translations-0.0.55 spec/dummy/db/migrate/20141018081640_create_roles.rb
awesome_translations-0.0.54 spec/dummy/db/migrate/20141018081640_create_roles.rb