Class: GTFS::Meta::CreatePublishers

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/gtfs/meta/migrations/create_publishers.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_publishers.rb', line 6

def change
  create_table :publishers do |t|
    t.string :name
    t.string :url, :null => false
    t.string :feeds_url
    t.string :email_address
    t.timestamps
  end
end