19 lines
319 B
Ruby
19 lines
319 B
Ruby
|
class CreateTracks < ActiveRecord::Migration
|
||
|
def self.up
|
||
|
create_table :tracks do |t|
|
||
|
t.string :name
|
||
|
t.integer :album_id
|
||
|
t.integer :position
|
||
|
t.integer :bonus
|
||
|
t.integer :live
|
||
|
t.integer :acoustic
|
||
|
|
||
|
t.timestamps
|
||
|
end
|
||
|
end
|
||
|
|
||
|
def self.down
|
||
|
drop_table :tracks
|
||
|
end
|
||
|
end
|