Class: GTFS::Meta::CreateFeedVersionChecks

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/gtfs/meta/migrations/create_feed_version_checks.rb

Instance Method Summary collapse

Instance Method Details

#changeObject

TODO: re-construct this migration from a custom generator



6
7
8
9
10
11
12
13
14
# File 'lib/gtfs/meta/migrations/create_feed_version_checks.rb', line 6

def change
  create_table :feed_version_checks do |t|
    t.integer :feed_version_id, :null => false
    t.string :status
    t.timestamps
  end

  add_index :feed_version_checks, :feed_version_id
end