Class: CreateFeatures

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

Class Method Summary collapse

Class Method Details

.downObject


15
16
17
# File 'lib/generators/arturo/templates/migration.rb', line 15

def self.down
  drop_table :features
end

.upObject


5
6
7
8
9
10
11
12
13
# File 'lib/generators/arturo/templates/migration.rb', line 5

def self.up
  create_table :features do |t|
    t.string   :symbol, :null => false
    t.integer  :deployment_percentage, :null => false
    #Any additional fields here

    t.timestamps
  end
end