Last active
August 29, 2015 14:03
-
-
Save yosssi/d43a11d492f8144c2881 to your computer and use it in GitHub Desktop.
migration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class CreateFbConnections < ActiveRecord::Migration | |
| def self.up | |
| create_table :fb_connections do |t| | |
| t.references :user | |
| t.string :uid | |
| t.string :access_token | |
| t.timestamps | |
| end | |
| add_index :fb_connections, [:user_id] | |
| add_index :fb_connections, [:uid] | |
| end | |
| def self.down | |
| drop_table :fb_connections | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment