Class: CreateChangefulContents

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/changeful/templates/migration.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
# File 'lib/generators/changeful/templates/migration.rb', line 2

def change
  create_table :changeful_contents do |t|
    t.string :key
    t.text :content
    t.string :view_type
    t.string :file_path
    t.timestamps null: true
  end
end