osem-fcy/db/migrate/20121223115125_create_tracks_table.rb

19 lines
345 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2013-01-07 09:04:09 +01:00
class CreateTracksTable < ActiveRecord::Migration
def up
create_table :tracks do |t|
2014-07-21 14:49:05 +02:00
t.string :guid, null: false
2013-01-07 09:04:09 +01:00
t.references :conference
2014-07-21 14:49:05 +02:00
t.string :name, null: false
2013-01-07 09:04:09 +01:00
t.text :description
t.string :color, default: '#ffffff'
2013-01-07 09:04:09 +01:00
t.timestamps
end
end
def down
end
end