osem-fcy/db/migrate/20121223135447_user_roles_table.rb

14 lines
241 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2013-01-07 09:04:09 +01:00
class UserRolesTable < ActiveRecord::Migration
def self.up
2014-07-21 14:49:05 +02:00
create_table :roles_users, id: false do |t|
2013-01-07 09:04:09 +01:00
t.references :role, :user
end
end
2014-08-18 21:26:45 +03:00
2013-01-07 09:04:09 +01:00
def self.down
drop_table :roles_users
end
end