1
0

20160220211917_create_statuses.rb 357 B

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