Sha256: 59a7c5293e396c9bcbe5a2dac400d5911bbf2b06942a1f140b949b6897affecc

Contents?: true

Size: 210 Bytes

Versions: 15

Compression:

Stored size: 210 Bytes

Contents

class CreateNews < ActiveRecord::Migration
  def self.up
    create_table :news do |t|
      t.string :title
      t.text :body

      t.timestamps
    end
  end

  def self.down
    drop_table :news
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
puffer-0.1.1 spec/dummy/db/migrate/20110301072545_create_news.rb
puffer-0.1.0 spec/dummy/db/migrate/20110301072545_create_news.rb
puffer-0.0.32 spec/dummy/db/migrate/20110301072545_create_news.rb
puffer-0.0.31 spec/dummy/db/migrate/20110301072545_create_news.rb
puffer-0.0.30 spec/dummy/db/migrate/20110301072545_create_news.rb
puffer-0.0.29 spec/dummy/db/migrate/20110301072545_create_news.rb
puffer-0.0.28 spec/dummy/db/migrate/20110301072545_create_news.rb
puffer-0.0.26 spec/dummy/db/migrate/20110301072545_create_news.rb
puffer-0.0.25 spec/dummy/db/migrate/20110301072545_create_news.rb
puffer-0.0.24 spec/dummy/db/migrate/20110301072545_create_news.rb
puffer-0.0.23 spec/dummy/db/migrate/20110301072545_create_news.rb
puffer-0.0.22 spec/dummy/db/migrate/20110301072545_create_news.rb
puffer-0.0.21 spec/dummy/db/migrate/20110301072545_create_news.rb
puffer-0.0.20 spec/dummy/db/migrate/20110301072545_create_news.rb
puffer-0.0.19 spec/dummy/db/migrate/20110301072545_create_news.rb