Class: CreateTramwayLandingTools

Inherits:
Object
  • Object
show all
Defined in:
lib/tramway/landing/generates/templates/create_tramway_landing_tools.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



4
5
6
7
8
9
10
11
12
13
# File 'lib/tramway/landing/generates/templates/create_tramway_landing_tools.rb', line 4

def change
  create_table :tramway_landing_tools do |t|
    t.text :title
    t.text :account_id
    t.jsonb :options
    t.text :state, default: :active

    t.timestamps
  end
end