Class: CreateAccounts

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/bookingsync/install/templates/create_bookingsync_accounts.rb

Instance Method Summary collapse

Instance Method Details

#changeObject


2
3
4
5
6
7
8
9
10
11
12
13
# File 'lib/generators/bookingsync/install/templates/create_bookingsync_accounts.rb', line 2

def change
  create_table :accounts do |t|
    t.string :provider
    t.integer :synced_id
    t.string :name
    t.string :oauth_access_token
    t.string :oauth_refresh_token
    t.string :oauth_expires_at

    t.timestamps
  end
end