Sha256: 6efbded3994c1858256968314e154ade39d8ff087688c13dba5a6a8b95d80d51

Contents?: true

Size: 290 Bytes

Versions: 3

Compression:

Stored size: 290 Bytes

Contents

class CreateStyles < ActiveRecord::Migration
  def up
    create_table :styles do |t|
      t.string :name
      t.references :page
      t.datetime :template_published_at
      t.datetime :template_previewed_at
      t.timestamps
    end
  end

  def down
    drop_table :styles
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
chosen_template-1.0.0 spec/dummy/db/migrate/20130526024132_create_styles.rb
chosen_template-0.1.0 spec/dummy/db/migrate/20130526024132_create_styles.rb
chosen_template-0.0.1 db/migrate/20130526024132_create_styles.rb