20170109120109_create_web_settings.rb 272 B

1234567891011121314
  1. # frozen_string_literal: true
  2. class CreateWebSettings < ActiveRecord::Migration[5.0]
  3. def change
  4. create_table :web_settings do |t|
  5. t.integer :user_id
  6. t.json :data
  7. t.timestamps
  8. end
  9. add_index :web_settings, :user_id, unique: true
  10. end
  11. end