Sha256: 66dedd200411ca663bd16055fb78e93b64ddde95efe773f4648126c88074ac4e

Contents?: true

Size: 214 Bytes

Versions: 11

Compression:

Stored size: 214 Bytes

Contents

class CreateAnnouncements < ActiveRecord::Migration
  def self.up
    create_table :announcements do |t|
      t.text :body
      t.timestamps
    end
  end

  def self.down
    drop_table :announcements
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
paul_revere-1.3 lib/generators/paul_revere/templates/migration.rb
paul_revere-1.2 lib/generators/paul_revere/templates/migration.rb
paul_revere-1.1 lib/generators/paul_revere/templates/migration.rb
paul_revere-1.0 lib/generators/paul_revere/templates/migration.rb
paul_revere-0.2.1 lib/generators/paul_revere/templates/migration.rb
paul_revere-0.2.0 lib/generators/paul_revere/templates/migration.rb
paul_revere-0.1.5 lib/generators/paul_revere/templates/migration.rb
paul_revere-0.1.4 lib/generators/paul_revere/templates/migration.rb
paul_revere-0.1.3 lib/generators/paul_revere/templates/migration.rb
paul_revere-0.1.2 lib/generators/paul_revere/templates/migration.rb
paul_revere-0.1.1 lib/generators/paul_revere/templates/migration.rb