Sha256: 76945d84ca8d3ecf5b95a709eeb30f7071ea8c32b2022be86ea553cc529f816c

Contents?: true

Size: 198 Bytes

Versions: 32

Compression:

Stored size: 198 Bytes

Contents

class AddMembersToSection < ActiveRecord::Migration
  def change
    add_column :sections, :members, :boolean, :default => true, :null => false
    execute "update sections set members=1"
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
artfully_ose-1.2.0.pre.11 db/migrate/20130508194552_add_members_to_section.rb
artfully_ose-1.2.0.pre.10 db/migrate/20130508194552_add_members_to_section.rb
artfully_ose-1.2.0.pre.9 db/migrate/20130508194552_add_members_to_section.rb
artfully_ose-1.2.0.pre.8 db/migrate/20130508194552_add_members_to_section.rb
artfully_ose-1.2.0.pre.7 db/migrate/20130508194552_add_members_to_section.rb
artfully_ose-1.2.0.pre.6 db/migrate/20130508194552_add_members_to_section.rb
artfully_ose-1.2.0.pre.5 db/migrate/20130508194552_add_members_to_section.rb
artfully_ose-1.2.0.pre.4 db/migrate/20130508194552_add_members_to_section.rb
artfully_ose-1.2.0.pre.3 db/migrate/20130508194552_add_members_to_section.rb
artfully_ose-1.2.0.pre.2 db/migrate/20130508194552_add_members_to_section.rb
artfully_ose-1.2.0.pre.1 db/migrate/20130508194552_add_members_to_section.rb
artfully_ose-1.2.0.pre db/migrate/20130508194552_add_members_to_section.rb