Sha256: ad10d0b370afa2c46752eaba1ab5da9b355df68980f929de153bf194cf6b264e

Contents?: true

Size: 338 Bytes

Versions: 10

Compression:

Stored size: 338 Bytes

Contents

class CreatePosts < ActiveRecord::Migration
  def change
    create_table :posts, force: true do |t|
      t.string  :title
      t.integer :visits
      t.float   :conversion_rate
      t.date    :published_on
      t.datetime :expired_at
      t.boolean :published
      t.timestamp :unix_timestamp
      t.timestamps
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
cloudxls-rails-0.6.2 spec/test_app/db/migrate/20120717192452_create_posts.rb
cloudxls-rails-0.6.1 spec/test_app/db/migrate/20120717192452_create_posts.rb
cloudxls-rails-0.6.0 spec/test_app/db/migrate/20120717192452_create_posts.rb
cloudxls-rails-0.5.0 spec/test_app/db/migrate/20120717192452_create_posts.rb
cloudxls-rails-0.4.3 spec/test_app/db/migrate/20120717192452_create_posts.rb
cloudxls-rails-0.4.2 spec/test_app/db/migrate/20120717192452_create_posts.rb
cloudxls-rails-0.4.1 spec/test_app/db/migrate/20120717192452_create_posts.rb
cloudxls-rails-0.4.0 spec/test_app/db/migrate/20120717192452_create_posts.rb
cloudxls-rails-0.3.1 spec/test_app/db/migrate/20120717192452_create_posts.rb
cloudxls-rails-0.3.0 spec/test_app/db/migrate/20120717192452_create_posts.rb