module Percent::ActiveRecord::MigrationExtensions::SchemaStatements
Public Instance Methods
add_percentage(table_name, accessor, options={})
click to toggle source
# File lib/percent/active_record/migration_extensions/schema_statements.rb, line 5 def add_percentage(table_name, accessor, options={}) *opts = Options.with_table table_name, accessor, options add_column *opts end
remove_percentage(table_name, accessor, options={})
click to toggle source
# File lib/percent/active_record/migration_extensions/schema_statements.rb, line 10 def remove_percentage(table_name, accessor, options={}) *opts = Options.with_table table_name, accessor, options remove_column *opts end