docbrown/db/migrate/20190417171020_create_classified_listings.rb
Ben Halpern 78138532c8
Classified Listings (#2545)
* Initial classified listings work

* More work on tags

* Additional work finalizing stripe and getting the listings page along

* Finalize-ish listings 🤞
2019-04-24 16:17:01 -04:00

17 lines
487 B
Ruby

class CreateClassifiedListings < ActiveRecord::Migration[5.1]
def change
create_table :classified_listings do |t|
t.bigint :user_id
t.bigint :organization_id
t.string :title
t.text :body_markdown
t.text :processed_html
t.string :category
t.string :cached_tag_list
t.datetime :bumped_at
t.boolean :published
t.boolean :contact_via_connect, default: false
t.timestamps
end
end
end