Sha256: 1feb200b9ceb1cd9d611a08bb88d25a35d9f65ac45b9bc576e46ce3cd5207f68

Contents?: true

Size: 248 Bytes

Versions: 10

Compression:

Stored size: 248 Bytes

Contents

class CreateAlbums < ActiveRecord::Migration
  def self.up
    create_table :albums do |t|
      t.string :title
      t.text :description
      t.integer :user_id

      t.timestamps
    end
  end

  def self.down
    drop_table :albums
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
community_engine-3.2.0 db/migrate/063_create_albums.rb
community_engine-3.0.0 db/migrate/063_create_albums.rb
community_engine-2.3.2 db/migrate/063_create_albums.rb
community_engine-2.3.1 db/migrate/063_create_albums.rb
community_engine-2.3.0 db/migrate/063_create_albums.rb
community_engine-2.1.0 db/migrate/063_create_albums.rb
community_engine-2.0.0 db/migrate/063_create_albums.rb
community_engine-2.0.0.beta3 db/migrate/063_create_albums.rb
community_engine-2.0.0.beta2 db/migrate/063_create_albums.rb
community_engine-2.0.0.beta1 db/migrate/063_create_albums.rb