Sha256: 5288d92561d30b261838bf486d24ebf3dbf7ab13bbdd79bd02bb88238f7fd0ad

Contents?: true

Size: 267 Bytes

Versions: 17

Compression:

Stored size: 267 Bytes

Contents

class AddRoleStringStrategy < 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

17 entries across 17 versions & 1 rubygems

Version Path
roles_active_record-0.5.1 spec/migrations/role_string/002_add_role_string_strategy.rb
roles_active_record-0.5.0 spec/migrations/role_string/002_add_role_string_strategy.rb
roles_active_record-0.4.9 spec/migrations/role_string/002_add_role_string_strategy.rb
roles_active_record-0.4.8 spec/migrations/role_string/002_add_role_string_strategy.rb
roles_active_record-0.4.7 spec/migrations/role_string/002_add_role_string_strategy.rb
roles_active_record-0.4.6.4 spec/migrations/role_string/002_add_role_string_strategy.rb
roles_active_record-0.4.6.3 spec/migrations/role_string/002_add_role_string_strategy.rb
roles_active_record-0.4.6.2 spec/migrations/role_string/002_add_role_string_strategy.rb
roles_active_record-0.4.6.1 spec/migrations/role_string/002_add_role_string_strategy.rb
roles_active_record-0.4.6 spec/migrations/role_string/002_add_role_string_strategy.rb
roles_active_record-0.4.5 spec/migrations/role_string/002_add_role_string_strategy.rb
roles_active_record-0.4.4 spec/migrations/role_string/002_add_role_string_strategy.rb
roles_active_record-0.4.3 spec/migrations/role_string/002_add_role_string_strategy.rb
roles_active_record-0.4.2 spec/migrations/role_string/002_add_role_string_strategy.rb
roles_active_record-0.4.1 spec/migrations/role_string/002_add_role_string_strategy.rb
roles_active_record-0.4.0 spec/migrations/role_string/002_add_role_string_strategy.rb
roles_active_record-0.3.6 spec/migrations/role_string/002_add_role_string_strategy.rb