Sha256: c7fdb8ecde237000b3b0f0881ef87f0458e5464242b2990d84234d02e6404c36
Contents?: true
Size: 725 Bytes
Versions: 1
Compression:
Stored size: 725 Bytes
Contents
class CreateOmnisocialTables < ActiveRecord::Migration def self.up create_table :users do |t| t.string :remember_token # Any additional fields here t.timestamps end create_table :login_accounts do |t| t.string :type t.integer :user_id t.string :remote_account_id t.string :name t.string :login t.string :picture_url t.string :access_token # 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
elecnix-omnisocial-0.1.5 | lib/generators/omnisocial/templates/migration.rb |