Sha256: 346a61bba4402e7ab46fa031f67dd8fc226a45f5653382e218dcec91b15715d6

Contents?: true

Size: 232 Bytes

Versions: 12

Compression:

Stored size: 232 Bytes

Contents

class CreateTracks < ActiveRecord::Migration
  def change
    create_table :tracks do |t|
      t.string :title
      t.integer :order
      t.references :album

      t.timestamps
    end
    add_index :tracks, :album_id
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
listings-0.1.15 spec/dummy/db/migrate/20150611185922_create_tracks.rb
listings-0.1.14 spec/dummy/db/migrate/20150611185922_create_tracks.rb
listings-0.1.13 spec/dummy/db/migrate/20150611185922_create_tracks.rb
listings-0.1.12 spec/dummy/db/migrate/20150611185922_create_tracks.rb
listings-0.1.11 spec/dummy/db/migrate/20150611185922_create_tracks.rb
listings-0.1.10 spec/dummy/db/migrate/20150611185922_create_tracks.rb
listings-0.1.8 spec/dummy/db/migrate/20150611185922_create_tracks.rb
listings-0.1.7 spec/dummy/db/migrate/20150611185922_create_tracks.rb
listings-0.1.6 spec/dummy/db/migrate/20150611185922_create_tracks.rb
listings-0.1.5 spec/dummy/db/migrate/20150611185922_create_tracks.rb
listings-0.1.4 spec/dummy/db/migrate/20150611185922_create_tracks.rb
listings-0.1.0 spec/dummy/db/migrate/20150611185922_create_tracks.rb