Sha256: 8558446b1d8d9f19b376eb690abb45d1bdb6bece6887e5bedafdcf5af2ddfccc
Contents?: true
Size: 474 Bytes
Versions: 1
Compression:
Stored size: 474 Bytes
Contents
class CreateRoles < ActiveRecord::Migration def self.up create_table "roles" do |t| t.column :name, :string end # generate the join table create_table "roles_users", :id => false do |t| t.column "role_id", :integer t.column "user_id", :integer end add_index "roles_users", "role_id" add_index "roles_users", "user_id" end def self.down drop_table "roles" drop_table "roles_users" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
talia_core-0.4.2 | generators/talia_base/templates/migrations/create_roles.rb |