Sha256: f4502dc05613f8ffa6e5529d83cda25e184947670f629977485d48f829c0b792

Contents?: true

Size: 558 Bytes

Versions: 1

Compression:

Stored size: 558 Bytes

Contents

class CreateRaceRegistrationsGroups < ActiveRecord::Migration

  def up
    create_table Refinery::RaceRegistrations::Group.table_name  do |t|
      t.string :title
      t.integer :position

      t.timestamps
    end

  end

  def down
    if defined?(::Refinery::UserPlugin)
      ::Refinery::UserPlugin.destroy_all({:name => "refinerycms-race_registrations"})
    end

    if defined?(::Refinery::Page)
      ::Refinery::Page.delete_all({:link_url => "/race_registrations/groups"})
    end

    drop_table :refinery_race_registrations_groups

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
refinerycms-registrations-0.2.1 db/migrate/4_create_race_registrations_groups.rb