Class: CreateGlassTimelineItems

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

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/generators/glass/install/templates/glass_timeline_item_migration.rb', line 2

def change
  create_table :glass_timeline_items do |t|
    t.string :type
    t.references :google_account
    t.string :glass_item_id
    t.boolean :is_deleted
    t.string :glass_etag
    t.string :glass_self_link
    t.string :glass_kind
    t.datetime :glass_created_at
    t.datetime :glass_updated_at
    t.string :glass_content_type
    t.text :glass_content
    t.datetime :display_time

    t.timestamps
  end
  add_index :glass_timeline_items, :google_account_id
end