Sha256: 3091a39cc36999a945977eaa397a92dfb6b150aa670c0da3184554c06ab151bd

Contents?: true

Size: 266 Bytes

Versions: 12

Compression:

Stored size: 266 Bytes

Contents

class AddRoleStringToUsers < ActiveRecord::Migration
  def self.up           
    change_table :users do |t|
      t.string :role_string, :default => 'guest'
    end
  end

  def self.down
    change_table :users do |t|
      t.remove :role_string
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
roles_active_record-0.3.5 spec/migrations/role_string/002_add_role_string_to_users.rb
roles_active_record-0.3.4 spec/migrations/role_string/002_add_role_string_to_users.rb
roles_active_record-0.3.3 spec/migrations/role_string/002_add_role_string_to_users.rb
roles_active_record-0.3.2 spec/migrations/role_string/002_add_role_string_to_users.rb
roles_active_record-0.3.1 spec/migrations/role_string/002_add_role_string_to_users.rb
roles_active_record-0.2.5 spec/migrations/role_string/002_add_role_string_to_users.rb
roles_active_record-0.2.4 spec/migrations/role_string/002_add_role_string_to_users.rb
roles_active_record-0.2.3 spec/migrations/role_string/002_add_role_string_to_users.rb
roles_active_record-0.2.2 spec/migrations/role_string/002_add_role_string_to_users.rb
roles_active_record-0.2.1 spec/migrations/role_string/002_add_role_string_to_users.rb
roles_active_record-0.2.0 spec/migrations/role_string/002_add_role_string_to_users.rb
roles_active_record-0.1.0 spec/migrations/role_string/002_add_role_string_to_users.rb