Sha256: ff2b08ea76a50f43eb475c3df00fe3fbb6ecee43b9e6758c14d17232569904c2

Contents?: true

Size: 303 Bytes

Versions: 2

Compression:

Stored size: 303 Bytes

Contents

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

      t.timestamps
    end
		create_join_table :permissions, :user_groups
  end

  def self.down
		drop_join_table :permissions, :user_groups
    drop_table :permissions
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lockdown-0.1.3 rails_generators/lockdown_all/templates/db/migrate/create_permissions.rb
lockdown-0.1.4 rails_generators/lockdown_all/templates/db/migrate/create_permissions.rb