* missing rails version 4.2 added to pre 5 migrations * updated carrierwave.rb and sitemap.rb with AWS_DEFAULT_REGION
22 lines
630 B
Ruby
22 lines
630 B
Ruby
class CreateBlocks < ActiveRecord::Migration[4.2]
|
|
def change
|
|
create_table :blocks do |t|
|
|
t.integer :user_id
|
|
t.text :input_html
|
|
t.text :processed_html
|
|
t.text :published_html
|
|
t.text :input_css
|
|
t.text :processed_css
|
|
t.text :published_css
|
|
t.text :input_javascript
|
|
t.text :processed_javascript
|
|
t.text :published_javascript
|
|
t.string :title
|
|
t.text :body_markdown
|
|
t.text :body_html
|
|
t.boolean :featured
|
|
t.integer :featured_number
|
|
t.timestamps null: false
|
|
end
|
|
end
|
|
end
|