Sha256: a74285aac0261addc47cb9c0218d5e86840eabe915d10de14c48469f2312e97a

Contents?: true

Size: 288 Bytes

Versions: 13

Compression:

Stored size: 288 Bytes

Contents

class CreateRoles < ActiveRecord::Migration
  def self.up
    create_table :roles do |t|
      t.string :name
      t.timestamps
    end
    Role.create(:name=>'Super')
    Role.create(:name=>'Admin')
    Role.create(:name=>'User')
  end

  def self.down
    drop_table :roles
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
wheels-0.0.17 db/migrate/create_roles.rb
wheels-0.0.16 db/migrate/create_roles.rb
wheels-0.0.15 db/migrate/create_roles.rb
wheels-0.0.14 db/migrate/create_roles.rb
wheels-0.0.13 db/migrate/create_roles.rb
wheels-0.0.11 db/migrate/create_roles.rb
wheels-0.0.10 db/migrate/create_roles.rb
wheels-0.0.9 db/migrate/create_roles.rb
wheels-0.0.8 db/migrate/create_roles.rb
wheels-0.0.6 db/migrate/create_roles.rb
wheels-0.0.5 db/migrate/create_roles.rb
wheels-0.0.4 db/migrate/create_roles.rb
wheels-0.0.3 db/migrate/create_roles.rb