Sha256: 62f929205e286ef93e59abdf1a1d5ddd79eeb0c216eeabf4376c49bf656702d8

Contents?: true

Size: 324 Bytes

Versions: 16

Compression:

Stored size: 324 Bytes

Contents

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 db/migrate/20121009222451_create_almanac_posts.rb
almanac-0.9.1 db/migrate/20121009222451_create_almanac_posts.rb
almanac-0.9.0 db/migrate/20121009222451_create_almanac_posts.rb
almanac-0.8.0 db/migrate/20121009222451_create_almanac_posts.rb
almanac-0.7.4 db/migrate/20121009222451_create_almanac_posts.rb
almanac-0.7.3 db/migrate/20121009222451_create_almanac_posts.rb
almanac-0.7.2 db/migrate/20121009222451_create_almanac_posts.rb
almanac-0.7.1 db/migrate/20121009222451_create_almanac_posts.rb
almanac-0.6.1 db/migrate/20121009222451_create_almanac_posts.rb
almanac-0.6.0 db/migrate/20121009222451_create_almanac_posts.rb
almanac-0.5.3 db/migrate/20121009222451_create_almanac_posts.rb
almanac-0.5.2 db/migrate/20121009222451_create_almanac_posts.rb
almanac-0.5.1 db/migrate/20121009222451_create_almanac_posts.rb
almanac-0.5.0 db/migrate/20121009222451_create_almanac_posts.rb
almanac-0.4.5 db/migrate/20121009222451_create_almanac_posts.rb
almanac-0.4.4 db/migrate/20121009222451_create_almanac_posts.rb