Sha256: 4eaff87b39a6ada14bacad1c213e072ab56321711cd0ecfa2a2520675af3a69e

Contents?: true

Size: 243 Bytes

Versions: 19

Compression:

Stored size: 243 Bytes

Contents

class CreateAdminPosts < ActiveRecord::Migration
  def self.up
    create_table :posts do |t|
      t.integer :user_id
      t.string :title
      t.text :body

      t.timestamps
    end
  end

  def self.down
    drop_table :posts
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
puffer-0.0.20 spec/dummy/db/migrate/20100930132656_create_admin_posts.rb
puffer-0.0.19 spec/dummy/db/migrate/20100930132656_create_admin_posts.rb
puffer-0.0.18 spec/dummy/db/migrate/20100930132656_create_admin_posts.rb
puffer-0.0.17 spec/dummy/db/migrate/20100930132656_create_admin_posts.rb
puffer-0.0.16 spec/dummy/db/migrate/20100930132656_create_admin_posts.rb
puffer-0.0.15 spec/dummy/db/migrate/20100930132656_create_admin_posts.rb
puffer-0.0.14 spec/dummy/db/migrate/20100930132656_create_admin_posts.rb
puffer-0.0.13 spec/dummy/db/migrate/20100930132656_create_admin_posts.rb
puffer-0.0.12 spec/dummy/db/migrate/20100930132656_create_admin_posts.rb
puffer-0.0.11 spec/dummy/db/migrate/20100930132656_create_admin_posts.rb
puffer-0.0.10 spec/dummy/db/migrate/20100930132656_create_admin_posts.rb
puffer-0.0.9 spec/dummy/db/migrate/20100930132656_create_admin_posts.rb
puffer-0.0.8 spec/dummy/db/migrate/20100930132656_create_admin_posts.rb
puffer-0.0.7 spec/dummy/db/migrate/20100930132656_create_admin_posts.rb
puffer-0.0.6 spec/dummy/db/migrate/20100930132656_create_admin_posts.rb
puffer-0.0.5 spec/dummy/db/migrate/20100930132656_create_admin_posts.rb
puffer-0.0.4 spec/dummy/db/migrate/20100930132656_create_admin_posts.rb
puffer-0.0.3 spec/dummy/db/migrate/20100930132656_create_admin_posts.rb
puffer-0.0.2 spec/dummy/db/migrate/20100930132656_create_admin_posts.rb