Sha256: b12d958647bba575dfd2decd4545e86deac13b7453818df13c56fc2e31015c82
Contents?: true
Size: 292 Bytes
Versions: 1
Compression:
Stored size: 292 Bytes
Contents
class CreateRoleAssignments < ActiveRecord::Migration def self.down create_table :roles do |t| t.string :name t.timestamps end add_column :users, :role_id, :integer end def self.up drop_table :roles remove_column :users, :role_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_role_assignments_migration.rb |