Sha256: e78504f6dac3e5454b419b478cd42a014b1294b6a9f8b039d77d1a64195f614b
Contents?: true
Size: 472 Bytes
Versions: 1
Compression:
Stored size: 472 Bytes
Contents
class CreateMultiRoleAssignments < ActiveRecord::Migration def self.down create_table :role_assignments do |t| t.integer :user_id t.integer :role_id t.timestamps end create_table :roles do |t| t.string :name t.timestamps end add_column :users, :role_assignment_id, :integer end def self.up drop_table :role_assignments drop_table :roles remove_column :users, :role_assignment_id end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
auth-assistant-0.4.0 | lib/generators/auth_assist/templates/remove_multi_role_assignments_migration.rb |