Sha256: 8225fc6027063016881fc6717160da046ca426e94390896b8e228ed1b0b4781d

Contents?: true

Size: 272 Bytes

Versions: 5

Compression:

Stored size: 272 Bytes

Contents

class CreateSongs < ActiveRecord::Migration
  def self.up
    create_table :songs do |t|
      t.string :title
      t.string :description
      t.integer :length
      t.integer :album_id

      t.timestamps
    end
  end

  def self.down
    drop_table :songs
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
restfulie-nosqlite-1.0.4 tests/db/migrate/20100817165436_create_songs.rb
restfulie-1.1.1 tests/db/migrate/20100817165436_create_songs.rb
restfulie-1.1.0 tests/db/migrate/20100817165436_create_songs.rb
restfulie-nosqlite-1.0.3 tests/db/migrate/20100817165436_create_songs.rb
restfulie-1.0.3 tests/db/migrate/20100817165436_create_songs.rb