Sha256: 5cbe3fed7ac12cfc3a05d2ec22f02953981e7f1a9a64dadd029b847387e21caa

Contents?: true

Size: 246 Bytes

Versions: 3

Compression:

Stored size: 246 Bytes

Contents

class CreatePosts < ActiveRecord::Migration[4.2]
  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

3 entries across 3 versions & 1 rubygems

Version Path
weeler-2.1.0 spec/dummy/db/migrate/20140718103237_create_posts.rb
weeler-2.0.1 spec/dummy/db/migrate/20140718103237_create_posts.rb
weeler-2.0.0 spec/dummy/db/migrate/20140718103237_create_posts.rb