Sha256: a53e902a074a86a1a76fb327b44d4d767ce2ee0328ae0f633ff7631d4411049b

Contents?: true

Size: 381 Bytes

Versions: 104

Compression:

Stored size: 381 Bytes

Contents

class CreatePermissions < ActiveRecord::Migration
  def self.up
    create_table :permissions do |t|
      t.string :name

      t.timestamps
    end

		create_table :permissions_user_groups, :id => false do |t|
      t.integer :permission_id
      t.integer :user_group_id
    end
  end

  def self.down
		drop_table :permissions_user_groups
    drop_table :permissions
  end
end

Version data entries

104 entries across 103 versions & 7 rubygems

Version Path
andrewzielinski-lockdown-0.9.6 rails_generators/lockdown/templates/db/migrate/create_permissions.rb
blaxter-lockdown-0.9.8.99 rails_generators/lockdown/templates/db/migrate/create_permissions.rb
blaxter-lockdown-0.9.9 rails_generators/lockdown/templates/db/migrate/create_permissions.rb
hone-lockdown-1.2.1 rails_generators/lockdown/templates/db/migrate/create_permissions.rb
hone-lockdown-1.2.2 rails_generators/lockdown/templates/db/migrate/create_permissions.rb
hone-lockdown-1.2.3 rails_generators/lockdown/templates/db/migrate/create_permissions.rb
revo-lockdown-0.9.6 rails_generators/lockdown/templates/db/migrate/create_permissions.rb
lockdown_vail-1.6.2.1 rails_generators/lockdown/templates/db/migrate/create_permissions.rb
lockdown-1.6.5 rails_generators/lockdown/templates/db/migrate/create_permissions.rb
revo-lockdown-1.6.2.2 rails_generators/lockdown/templates/db/migrate/create_permissions.rb
lockdown-1.6.4 rails_generators/lockdown/templates/db/migrate/create_permissions.rb
lockdown-1.6.3 rails_generators/lockdown/templates/db/migrate/create_permissions.rb
revo-lockdown-1.6.2.1 rails_generators/lockdown/templates/db/migrate/create_permissions.rb
revo-lockdown-1.6.2 rails_generators/lockdown/templates/db/migrate/create_permissions.rb
lockdown-1.6.2 rails_generators/lockdown/templates/db/migrate/create_permissions.rb
lockdown-1.6.1 rails_generators/lockdown/templates/db/migrate/create_permissions.rb
lockdown-1.6.0 rails_generators/lockdown/templates/db/migrate/create_permissions.rb
lockdown-1.5.1 rails_generators/lockdown/templates/db/migrate/create_permissions.rb
lockdown-1.5.0 rails_generators/lockdown/templates/db/migrate/create_permissions.rb
gemstreamer-1.2.0 spec/assets/testapp/db/migrate/20091031093231_create_permissions.rb