20160220211917_create_statuses.rb 326 B

12345678910111213
  1. class CreateStatuses < ActiveRecord::Migration[4.2]
  2. def change
  3. create_table :statuses do |t|
  4. t.string :uri, null: false, default: ''
  5. t.integer :account_id, null: false
  6. t.text :text, null: false, default: ''
  7. t.timestamps null: false
  8. end
  9. add_index :statuses, :uri, unique: true
  10. end
  11. end