Sha256: ff47d99a456f0bea37c7b3c01d5688c02d9909304f4c576330cb37b3c42778c1

Contents?: true

Size: 929 Bytes

Versions: 4

Compression:

Stored size: 929 Bytes

Contents

class CreateHatchyProjects < ActiveRecord::Migration
  def change
    create_table :hatchy_projects do |t|
      t.belongs_to   :user
      t.belongs_to   :category
      t.string       :project_img
      t.string       :city
      t.string       :name,               null: false, limit: 50
      t.string       :headline
      t.string       :about
      t.string       :budget
      t.string       :video_url
      t.string       :short_url
      t.decimal      :goal,               precision: 8, scale: 2
      t.integer      :online_days
      t.timestamp    :online_date
      t.timestamp    :expires_at
      t.timestamp    :rejected_at
      t.timestamp    :send_to_draft_at
      t.string       :status,             null: false
      t.boolean      :recommended,        null: false, default: false
      t.timestamps
    end
    add_index :hatchy_projects, :user_id
    add_index :hatchy_projects, :category_id
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hatchy-0.0.8.pre db/migrate/20160111175139_create_hatchy_projects.rb
hatchy-0.0.7.pre db/migrate/20160111175139_create_hatchy_projects.rb
hatchy-0.0.6.pre db/migrate/20160111175139_create_hatchy_projects.rb
hatchy-0.0.5.pre db/migrate/20160111175139_create_hatchy_projects.rb