Sha256: f870cec20d2019b837d8d343441656966ecfed90f3c9908c76f0dca50c2d6d19

Contents?: true

Size: 241 Bytes

Versions: 12

Compression:

Stored size: 241 Bytes

Contents

class CreatePosts < ActiveRecord::Migration
  def change
    create_table :posts do |t|
      t.string :title
      t.text :body
      t.integer :sequence, default: 0
      t.integer :status, default: 0

      t.timestamps
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
weeler-1.6.0 spec/dummy/db/migrate/20140718103237_create_posts.rb
weeler-1.5.4 spec/dummy/db/migrate/20140718103237_create_posts.rb
weeler-1.5.2 spec/dummy/db/migrate/20140718103237_create_posts.rb
weeler-1.5.1 spec/dummy/db/migrate/20140718103237_create_posts.rb
weeler-1.4.0 spec/dummy/db/migrate/20140718103237_create_posts.rb
weeler-1.2.0 spec/dummy/db/migrate/20140718103237_create_posts.rb
weeler-1.1.0 spec/dummy/db/migrate/20140718103237_create_posts.rb
weeler-1.0.4 spec/dummy/db/migrate/20140718103237_create_posts.rb
weeler-1.0.3 spec/dummy/db/migrate/20140718103237_create_posts.rb
weeler-1.0.2 spec/dummy/db/migrate/20140718103237_create_posts.rb
weeler-1.0.1 spec/dummy/db/migrate/20140718103237_create_posts.rb
weeler-1.0.0 spec/dummy/db/migrate/20140718103237_create_posts.rb