闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
326 B

8 years ago
  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