Sha256: 97d0c47c322e40fa723154979164ec8ff1cd87301ad1977992923d2839d3dba0

Contents?: true

Size: 388 Bytes

Versions: 16

Compression:

Stored size: 388 Bytes

Contents

# This migration comes from almanac (originally 20121009222451)
class CreateAlmanacPosts < ActiveRecord::Migration
  def up
    create_table :almanac_posts do |t|
      t.string :title
      t.text :body
      t.boolean :published, :default => false
      t.references :blog
      t.references :author

      t.timestamps
    end
  end

  def down
    drop_table :almanac_posts
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
almanac-0.9.2 spec/dummy/db/migrate/20121114185255_create_almanac_posts.almanac.rb
almanac-0.9.1 spec/dummy/db/migrate/20121114185255_create_almanac_posts.almanac.rb
almanac-0.9.0 spec/dummy/db/migrate/20121114185255_create_almanac_posts.almanac.rb
almanac-0.8.0 spec/dummy/db/migrate/20121114185255_create_almanac_posts.almanac.rb
almanac-0.7.4 spec/dummy/db/migrate/20121114185255_create_almanac_posts.almanac.rb
almanac-0.7.3 spec/dummy/db/migrate/20121114185255_create_almanac_posts.almanac.rb
almanac-0.7.2 spec/dummy/db/migrate/20121114185255_create_almanac_posts.almanac.rb
almanac-0.7.1 spec/dummy/db/migrate/20121114185255_create_almanac_posts.almanac.rb
almanac-0.6.1 spec/dummy/db/migrate/20121114185255_create_almanac_posts.almanac.rb
almanac-0.6.0 spec/dummy/db/migrate/20121114185255_create_almanac_posts.almanac.rb
almanac-0.5.3 spec/dummy/db/migrate/20121114185255_create_almanac_posts.almanac.rb
almanac-0.5.2 spec/dummy/db/migrate/20121114185255_create_almanac_posts.almanac.rb
almanac-0.5.1 spec/dummy/db/migrate/20121114185255_create_almanac_posts.almanac.rb
almanac-0.5.0 spec/dummy/db/migrate/20121114185255_create_almanac_posts.almanac.rb
almanac-0.4.5 spec/dummy/db/migrate/20121114185255_create_almanac_posts.almanac.rb
almanac-0.4.4 spec/dummy/db/migrate/20121009230705_create_almanac_posts.rb