Sha256: 83188904e38cb0a5b8975da799e3f2f23bd26468ceee48fa8835fd7c17f3d4cb
Contents?: true
Size: 707 Bytes
Versions: 3
Compression:
Stored size: 707 Bytes
Contents
class CreateRaceRegistrationsRegistrations < ActiveRecord::Migration def up create_table :refinery_race_registrations_registrations do |t| t.string :title t.string :locality t.date :race_date t.boolean :is_active t.datetime :start_date t.datetime :end_date 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/registrations"}) end drop_table :refinery_race_registrations_registrations end end
Version data entries
3 entries across 3 versions & 1 rubygems