Sha256: 6767583eadebb25d92c3babdb2d63d97e4eb5d408181227603d9c5f6f9d1338e

Contents?: true

Size: 622 Bytes

Versions: 12

Compression:

Stored size: 622 Bytes

Contents

class AeUsersLocalTables < ActiveRecord::Migration
  def self.up
    create_table :permissions do |t|
      t.column :role_id, :integer
      t.column :person_id, :integer
      t.column :permission, :string
      t.column :permissioned_id, :integer
      t.column :permissioned_type, :string
    end
    
    create_table :auth_tickets do |t|
      t.column :secret, :string
      t.column :person_id, :integer
      t.timestamps
      t.column :expires_at, :datetime
    end

    add_index :auth_tickets, :secret, :unique => true
  end

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

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
ae_users_legacy-0.6.14 generators/ae_users/templates/migration.rb
ae_users_legacy-0.6.13 generators/ae_users/templates/migration.rb
ae_users_legacy-0.6.12 generators/ae_users/templates/migration.rb
ae_users_legacy-0.6.11 generators/ae_users/templates/migration.rb
ae_users_legacy-0.6.10 generators/ae_users/templates/migration.rb
ae_users_legacy-0.6.9 generators/ae_users/templates/migration.rb
ae_users_legacy-0.6.8 generators/ae_users/templates/migration.rb
ae_users_legacy-0.6.7 generators/ae_users/templates/migration.rb
ae_users_legacy-0.6.6 generators/ae_users/templates/migration.rb
ae_users_legacy-0.6.5 generators/ae_users/templates/migration.rb
ae_users_legacy-0.6.3 generators/ae_users/templates/migration.rb
ae_users-0.6.0 generators/ae_users/templates/migration.rb