clarion/db/migrate/20140810172123_create_tracks.rb

12 lines
246 B
Ruby
Raw Normal View History

class CreateTracks < ActiveRecord::Migration[4.2]
def change
create_table :tracks do |t|
t.string :name, null: false
t.string :color, null: false
t.references :conference, index: true
t.timestamps
end
end
end