Sha256: c05517a833517280e5ca87e3c1b37207c7383a6afc66b6e191640533d5200af3
Contents?: true
Size: 802 Bytes
Versions: 4
Compression:
Stored size: 802 Bytes
Contents
class CreateOmnisocialTables < ActiveRecord::Migration def self.up create_table :users do |t| t.string :remember_token # Any additional fields here t.string :display_name t.string :email_address t.string :picture_url t.timestamps end create_table :login_accounts do |t| t.string :type t.string :user_id t.string :remote_account_id t.string :name t.string :login t.string :picture_url # Any additional fields here t.timestamps end add_index :login_accounts, :user_id add_index :login_accounts, :type end def self.down remove_index :login_accounts, :type remove_index :login_accounts, :user_id drop_table :login_accounts drop_table :users end end
Version data entries
4 entries across 4 versions & 1 rubygems